﻿using System;

namespace XamlInspector.Model
{
    public class XamlEvent
    {
        public XamlEvent(string name, XamlElement source, string data)
        {
            DateTime = DateTime.Now;
            Name = name;
            Data = data;
            Source = source;
        }

        public DateTime DateTime { get; private set; }

        public string DateTimeText 
        {
            get { return DateTime.ToString("hh:mm:ss"); }
        }

        public XamlElement Source { get; private set; }

        public string Name { get; private set; }

        public string Data { get; private set; }
    }
}
